/**
 * @author guocailee
 */
import Vue from 'vue'
/**
 * 获取邀请码
 * @return {[type]} [description]
 */
export const getInviteCode = () => {
  return Vue.http.get('content/invite/inviteCode')
}

/**
 * 根据邀请码取得邀请的信息
 * @return {[type]} [description]
 */
export const getInviteInfo = (params) => {
  return Vue.http.get(`content/invite/inviteInfo?code=${ params.code }&productCode=${params.productCode}`)
}

/**
 * 申请加入公司
 * @param {json}
  "params": {
    "inviteJoinCode":"4c34878c6cffeb45f622724db858ada5",
    "account": "18650809023",
    "name":"lzy"
  }
 */
export const applyCmp = (params) => {
  return Vue.fetch.post('content/invite/applicant', params)
}